def createCounter():
    def count():
        i = 1
        while True:
            yield i
            i = i + 1
    f = count()
    def counter():
        return next(f)
    return counter

n = createCounter()
for i in range(1, 100):
    print(n())
